listbox: don't use focus-line-width
authorCosimo Cecchi <cosimoc@gnome.org>
Sun, 4 May 2014 18:42:04 +0000 (20:42 +0200)
committerCosimo Cecchi <cosimoc@gnome.org>
Fri, 9 May 2014 18:02:46 +0000 (11:02 -0700)
gtk/gtklistbox.c

index 41761c16da6e93932512d572d0c7d1b7a37bb7ac..bfe622fb64860123863e05cc7df5efbfad2f77c4 100644 (file)
@@ -2939,21 +2939,17 @@ gtk_list_box_row_get_full_border (GtkListBoxRow *row,
   GtkStyleContext *context;
   GtkStateFlags state;
   GtkBorder padding, border;
-  int focus_width;
 
   context = gtk_widget_get_style_context (widget);
   state = gtk_style_context_get_state (context);
 
   gtk_style_context_get_padding (context, state, &padding);
   gtk_style_context_get_border (context, state, &border);
-  gtk_style_context_get_style (context,
-                               "focus-line-width", &focus_width,
-                               NULL);
-
-  full_border->left = padding.left + border.left + focus_width;
-  full_border->right = padding.right + border.right + focus_width;
-  full_border->top = padding.top + border.top + focus_width;
-  full_border->bottom = padding.bottom + border.bottom + focus_width;
+
+  full_border->left = padding.left + border.left;
+  full_border->right = padding.right + border.right;
+  full_border->top = padding.top + border.top;
+  full_border->bottom = padding.bottom + border.bottom;
 }
 
 static void gtk_list_box_row_get_preferred_height_for_width (GtkWidget *widget,